import React, { Component } from 'react';
import RouterView from '../../router/RouterView';

class index extends Component {
    render() {
        return (
            <div className='register'>
                
                {/* 渲染RouterView组件(传入二级路由规则,内部会动态生成二级路由规则) */}
                <RouterView routes={this.props.routes} />
            </div>
        );
    }
    // async back(){
    //     this.props.history.go(-1);
    // }
}

export default index;